package com.example.sunmiv1.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class GiftGoodsInfo implements Serializable{

    /**
     * status : 1
     * msg : 數據獲取成功 1!
     * data : {"list":[{"goods_name":"黑筆","sku_name":"支","goods_code":"","sku_code":"","goods_number":"10041","sku_num":"1.000","cost_price":"0.50","goods_gifts_id":"3","remain_inventory":"100.00","goods_image":null,"is_goods_gift":1,"num":1},{"goods_name":"山東櫻桃山","sku_name":"哈哈哈哈哈哈","goods_code":"1219786949","sku_code":"1219786949-4","goods_number":"54037","sku_num":"1.000","cost_price":"10.00","goods_gifts_id":"2","remain_inventory":"100.00","goods_image":null,"is_goods_gift":1,"num":1}],"total":"2"}
     */

    private int status;
    private String msg;
    private DataBean data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg == null ? "" : msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * list : [{"goods_name":"黑筆","sku_name":"支","goods_code":"","sku_code":"","goods_number":"10041","sku_num":"1.000","cost_price":"0.50","goods_gifts_id":"3","remain_inventory":"100.00","goods_image":null,"is_goods_gift":1,"num":1},{"goods_name":"山東櫻桃山","sku_name":"哈哈哈哈哈哈","goods_code":"1219786949","sku_code":"1219786949-4","goods_number":"54037","sku_num":"1.000","cost_price":"10.00","goods_gifts_id":"2","remain_inventory":"100.00","goods_image":null,"is_goods_gift":1,"num":1}]
         * total : 2
         */

        private String total;
        private List<ListBean> list;

        public String getTotal() {
            return total == null ? "" : total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public List<ListBean> getList() {
            if (list == null) {
                return new ArrayList<>();
            }
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean implements Serializable {
            /**
             * goods_name : 黑筆
             * sku_name : 支
             * goods_code :
             * sku_code :
             * goods_number : 10041
             * sku_num : 1.000
             * cost_price : 0.50
             * goods_gifts_id : 3
             * remain_inventory : 100.00
             * goods_image : null
             * is_goods_gift : 1
             * num : 1
             */

            private String id;
            private String sku_id;
            private String goods_name;
            private String sku_name;
            private String goods_code;
            private String sku_code;
            private String goods_number;
            private String sku_num;
            private String cost_price;
            private String goods_gifts_id;
            private String remain_inventory;
            private String goods_image;
            private int is_goods_gift;
            private int num;
            private int chooseNum;

            public String getId() {
                return id == null ? "" : id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getSku_id() {
                return sku_id == null ? "" : sku_id;
            }

            public void setSku_id(String sku_id) {
                this.sku_id = sku_id;
            }

            public String getGoods_name() {
                return goods_name == null ? "" : goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public String getSku_name() {
                return sku_name == null ? "" : sku_name;
            }

            public void setSku_name(String sku_name) {
                this.sku_name = sku_name;
            }

            public String getGoods_code() {
                return goods_code == null ? "" : goods_code;
            }

            public void setGoods_code(String goods_code) {
                this.goods_code = goods_code;
            }

            public String getSku_code() {
                return sku_code == null ? "" : sku_code;
            }

            public void setSku_code(String sku_code) {
                this.sku_code = sku_code;
            }

            public String getGoods_number() {
                return goods_number == null ? "" : goods_number;
            }

            public void setGoods_number(String goods_number) {
                this.goods_number = goods_number;
            }

            public String getSku_num() {
                return sku_num == null ? "" : sku_num;
            }

            public void setSku_num(String sku_num) {
                this.sku_num = sku_num;
            }

            public String getCost_price() {
                return cost_price == null ? "" : cost_price;
            }

            public void setCost_price(String cost_price) {
                this.cost_price = cost_price;
            }

            public String getGoods_gifts_id() {
                return goods_gifts_id == null ? "" : goods_gifts_id;
            }

            public void setGoods_gifts_id(String goods_gifts_id) {
                this.goods_gifts_id = goods_gifts_id;
            }

            public String getRemain_inventory() {
                return remain_inventory == null ? "" : remain_inventory;
            }

            public void setRemain_inventory(String remain_inventory) {
                this.remain_inventory = remain_inventory;
            }

            public String getGoods_image() {
                return goods_image;
            }

            public void setGoods_image(String goods_image) {
                this.goods_image = goods_image;
            }

            public int getIs_goods_gift() {
                return is_goods_gift;
            }

            public void setIs_goods_gift(int is_goods_gift) {
                this.is_goods_gift = is_goods_gift;
            }

            public int getNum() {
                return num;
            }

            public void setNum(int num) {
                this.num = num;
            }

            public int getChooseNum() {
                return chooseNum;
            }

            public void setChooseNum(int chooseNum) {
                this.chooseNum = chooseNum;
            }
        }
    }
}
